package cn.wolfcode.crm.service;

import cn.wolfcode.crm.domain.Contact;
import cn.wolfcode.crm.query.ContactQueryObject;
import cn.wolfcode.crm.query.QueryObject;
import cn.wolfcode.crm.util.PageResult;
import org.apache.poi.ss.usermodel.Workbook;

import java.util.List;

public interface IContactService {
    void deleteByPrimaryKey(Long id);

    void insert(Contact entity);

    Contact selectByPrimaryKey(Long id);

    List<Contact> selectAll();

    void updateByPrimaryKey(Contact entity);

    PageResult query(QueryObject qo);

    Workbook exportXls(ContactQueryObject qo);
}
